//
//  YCPersonnalSetTableViewCell.m
//  lianganyuchu
//
//  Created by iMac on 17/2/24.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import "YCPersonnalSetTableViewCell.h"

@implementation YCPersonnalSetTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.backView addShadowWith:CGSizeMake(kMainScreen_Width-2*kDistance, 150)];
    [self.label1 setFont:[UIFont LightFontOfSize:16]];
    [self.label2 setFont:[UIFont LightFontOfSize:16]];
    [self.label3 setFont:[UIFont LightFontOfSize:16]];
    [self.labName setFont:[UIFont LightFontOfSize:15]];
    [self.labChange setFont:[UIFont LightFontOfSize:15]];
    [self.labPhone setFont:[UIFont LightFontOfSize:15]];
    
    [self.label1 setTextColor:TEXT_DEEP];
    [self.label2 setTextColor:TEXT_DEEP];
    [self.label3 setTextColor:TEXT_DEEP];
    [self.labName setTextColor:TEXT_LIGHT];
    [self.labChange setTextColor:TEXT_LIGHT];
    [self.labPhone setTextColor:TEXT_LIGHT];
    
    [self.backView click:self action:@selector(clickBack:)];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)clickBack:(UIGestureRecognizer *)gesture
{
    CGFloat pointY=[gesture locationInView:gesture.view].y;
    if (pointY>50 && pointY<=100) {
        self.changeCodeBlock();
    }
}
-(void)bindWith:(UserTable *)userTable
{
    [self.labName setText:userTable.username];
    [self.labPhone setText:userTable.phone];
}
@end







